package com.ls.hnks.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ls.hnks.model.CustomerAttachment;
import com.ls.hnks.service.CustomerAttachmentService;
import com.ls.hnks.mapper.CustomerAttachmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 15375
* @description 针对表【tb_customer__attachment(服务模板条目图片)】的数据库操作Service实现
* @createDate 2023-01-25 21:57:43
*/
@Service
public class CustomerAttachmentServiceImpl extends ServiceImpl<CustomerAttachmentMapper, CustomerAttachment>
    implements CustomerAttachmentService{

    @Override
    public List<CustomerAttachment> getAttachmentsByCustomerId(String id) {
        QueryWrapper<CustomerAttachment> attachmentQueryWrapper = new QueryWrapper<>();
        attachmentQueryWrapper.eq("ServiceTemplateItemID",id);
        return this.list(attachmentQueryWrapper);
    }
}




